package org.christopher.bank.service.impl;

import org.christopher.bank.entity.Department;
import org.christopher.bank.mapper.DepartmentMapper;
import org.christopher.bank.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {


    @Autowired
    private DepartmentMapper departmentMapper;


    @Override
    public List<Department> selectDepartAll() {
        return departmentMapper.selectList(null);
    }

    @Override
    public Department selectDepartById(Integer id) {
        return null;
    }

    @Override
    public int addDepartment(Department department) {
        return 0;
    }

    @Override
    public int updateDepart(Department department) {
        return 0;
    }

    @Override
    public int deleteDepart(Integer id) {
        return 0;
    }
}
